package com.supporter.sysbench.result;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 统计结果
 *
 * @author xunaidong
 * @date 2021/8/8
 */
public class Statistics {
    /**
     * 统计时长
     */
    private final int duratio;

    public Statistics(int duratio) {
        this.duratio = duratio;
    }

    /**
     * 已完成的表
     */
    public AtomicLong completeTable = new AtomicLong();

    /**
     * tps
     */
    public AtomicLong txcnt = new AtomicLong();
    /**
     * qps
     */
    public AtomicLong qrcnt = new AtomicLong();
    /**
     * reads
     */
    public AtomicLong rdcnt = new AtomicLong();
    /**
     * writes
     */
    public AtomicLong wrcnt = new AtomicLong();
    /**
     * others
     */
    public AtomicLong otcnt = new AtomicLong();
    /**
     * errors
     */
    public AtomicLong ercnt = new AtomicLong();
    /**
     * 响应时长
     */
    public AtomicLong latms = new AtomicLong();

    public AtomicLong rccnt = new AtomicLong();
}
